package com.jeespring.chapter01.section02;

class MyThread03 extends Thread{
	private int i;
	
	public MyThread03(int i) {
		super();
		this.i = i;
	}

	public void run() {
		System.out.println(i);
	}
}
public class Thread03{
	public static void main(String[] args) {
		MyThread03 myThread01 = new MyThread03(1);
		MyThread03 myThread02 = new MyThread03(2);
		MyThread03 myThread03 = new MyThread03(3);
		MyThread03 myThread04 = new MyThread03(4);
		MyThread03 myThread05 = new MyThread03(5);
		MyThread03 myThread06 = new MyThread03(6);
		MyThread03 myThread07 = new MyThread03(7);
		MyThread03 myThread08 = new MyThread03(8);
		myThread01.start();
		myThread02.start();
		myThread03.start();
		myThread04.start();
		myThread05.start();
		myThread06.start();
		myThread07.start();
		myThread08.start();
	}
}
